<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<head>
    <%--<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />--%>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>登录页面</title>
        <%@include file="common.jsp"%>
    <link rel="stylesheet" href="/static/rili/cptswr/css/style.default.css" type="text/css" />
    <%--<script type="text/javascript" src="/static/rili/cptswr/js/plugins/jquery-1.7.min.js"></script>--%>
    <%--<script type="text/javascript" src="/static/rili/cptswr/js/plugins/jquery-ui-1.8.16.custom.min.js"></script>--%>
    <%--<script type="text/javascript" src="/static/rili/cptswr/js/plugins/jquery.cookie.js"></script>--%>
    <%--<script type="text/javascript" src="/static/rili/cptswr/js/plugins/jquery.uniform.min.js"></script>--%>
    <%--<script type="text/javascript" src="/static/rili/cptswr/js/custom/general.js"></script>--%>
    <%--<script type="text/javascript" src="/static/rili/cptswr/js/custom/index.js"></script>--%>
    <script type="text/javascript">
        $(function(){
            $("#submitbtn").click(function(){
                $("#form_login").form("submit",{
                    url:'/login',
                    success:function(data){
                        console.log(data)
                        data = $.parseJSON(data)
                        if(data.success){
                            window.location.href = '/main'
                        }else {
                            $.messager.alert("温馨提示",data.msg,"error")
                        }
                    }
                })
            })
        })
    </script>
    <!--[if IE 9]>
    <!--<link rel="stylesheet" media="screen" href="/static/rili/cptswr/css/style.ie9.css"/>-->
    <![endif]-->
    <!--[if IE 8]>
    <!--<link rel="stylesheet" media="screen" href="/static/rili/cptswr/css/style.ie8.css"/>-->
    <![endif]-->
    <!--[if lt IE 9]>
    <!--<script src="/static/rili/cptswr/js/plugins/css3-mediaqueries.js"></script>-->
    <![endif]-->
</head>

<body class="loginpage">
<div class="loginbox">
    <div class="loginboxinner">

        <div class="logo">
            <h1 class="logo">CAR<span>SERVICE</span></h1>
            <span class="slogan">后台管理系统</span>
        </div><!--logo-->

        <br clear="all" /><br />

        <div class="nousername">
            <div class="loginmsg">密码不正确.</div>
        </div><!--nousername-->

        <div class="nopassword">
            <div class="loginmsg">密码不正确.</div>
            <div class="loginf">
                <div class="thumb"><img alt="" src="images/thumbs/avatar1.png" /></div>
                <div class="userlogged">
                    <h4></h4>
                    <a href="index.html">Not <span></span>?</a>
                </div>
            </div><!--loginf-->
        </div><!--nopassword-->

        <form id="form_login"  method="post"><%--action="dashboard.html"--%>

            <div class="username">
                <div class="usernameinner">
                    <input type="text" name="username" id="username" />
                </div>
            </div>

            <div class="password">
                <div class="passwordinner">
                    <input type="password" name="password" id="password" />
                </div>
            </div>

            <%--<button id="">登录</button>--%>
            <a id="submitbtn" class="easyui-linkbutton" >登录</a>

            <div class="keep"><input type="checkbox" /> 记住密码</div>

        </form>

    </div><!--loginboxinner-->
</div><!--loginbox-->


</body>
</html>
